 var submit = document.getElementById('singin');
 submit.addEventListener('click',login,true);

 function login(){
 window.location = "view.html"
 }